import java.util.Calendar;
import java.util.Date;

import pulpcore.animation.Fixed;
import pulpcore.scene.Scene2D;
import pulpcore.sound.Sound;


public class AlarmScene extends Scene2D
{

	Date alarmDate = new Date(108,05,13,05,30,00);
	boolean playing = false;
	
	@Override
	public void update(int elapsedTime)
	{
		super.update(elapsedTime);
		
		Date d = new Date();
		if (!playing && d.after(alarmDate))
		{
			playing = true;
			Sound bgSound = Sound.load("sound/MWC.ogg");
			bgSound.play(new Fixed(1.0), new Fixed(0.0), true);
		}
	}
	
}
